myChart2 = echarts.init(document.getElementById('mychart2'));

option2 = {
    color: ['#5ECF35', '#2F4554'],
    graphic: {
        type: 'text',
        id: 'text1',
        left: '36%',
        top: '60%',
        style: {
            text: '95%',
            fontSize: '45',
            fill: '#FFFFFF'
        }
    },
    series: [
        {
            name: 'OLT健康度',
            type: 'pie',
            radius: ['65%', '70%'],
            startAngle: 225,
            label: {
                normal: {
                    show: true,
                    position: 'center',
                    textStyle: {
                        fontSize: 25,
                        color: '#FFFFFF'
                    }
                }
            },

            data: [
                {value: 95, name: 'OLT健康度'},
                {value: 5,},
                {
                    value: 30,
                    itemStyle: {
                        normal: {color: 'rgba(0,0,0,0)'}
                    }
                }
            ]
        }
    ]
}
myChart2.setOption(option2);
